/**
 *
 */
package com.mmlc.network.filter;

import android.content.Context;

import com.androidnetframe.BaseParentActivity;
import com.androidnetframe.httputil.BaseRequestFilterLayer;
import com.androidnetframe.httputil.EntryPageName;
import com.mmlc.network.requestbean.ShopOrderPayMethodRequestBean;
import com.mmlc.utils.DataReflect;

import java.util.List;

/**
 * @author 何强
 *         2015-12-18
 * @修改 张园汀 2015-12-30
 */
public class ShopOrderPayMethodRequestFilter extends BaseRequestFilterLayer {
    public ShopOrderPayMethodRequestBean requestBean = new ShopOrderPayMethodRequestBean();

    Context context;

    public ShopOrderPayMethodRequestFilter(BaseParentActivity context) {
        super(context);
        this.context = context.getApplicationContext();
        requestBean.method = "getPayment";
        makeRequestParams.entryPageName = EntryPageName.common + "";
        makeRequestParams.setReqeustBean(requestBean, true);
    }

    public List<ShopOrderBean> orderBean;
    @Override
    public void getResultSuccess(String responseString, Object obj) {
        //orderBean = (List<ShopOrderBean>) ReflectToBeanUtils.reflectJsonToList(ShopOrderBean.class,responseString,0);
    }

    @DataReflect(keyFiled = {
            "data,pay_name=payName|ext_info=extInfo{key=value}"
    })
    public class ShopOrderBean{
        public String payName;
        public List<ExtInfo> extInfo;
        public class ExtInfo{
            public String key;
            public String value;
        }
    }
}
